<template>
<div class="box">
  <div class="w">
    <slot></slot>
  </div>
</div>
</template>

<script>
export default {
  name: "mkContent"
}
</script>

<style scoped>
  .box{
    width: 100%;
    box-sizing: border-box;
  }
  .box[bgColor='dark']{
    background-color: #E4E7ED;
  }
  .box[bgColor='light']{
    background-color: #fff;
  }
  .w{
    width: 90%;
    margin: 0 auto;
    transition: width .3s;
  }
  @media screen and (max-width: 1024px){
    .w{
      width: 94%;
    }
  }
  @media screen and (max-width: 600px){
    .w{
      width: 100%;
    }
  }
</style>
